package com.service;

import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.UsersDao;
import com.pojo.Users;
import com.util.MySqlSessionFactory;

public class UsersService {
	SqlSession sql=MySqlSessionFactory.getSqlSession();
	UsersDao dao=sql.getMapper(UsersDao.class);
	public Users queryone(@Param("account") String account,@Param("password") String password){
		return dao.queryone(account, password);
	}
	public Map<String, Object> lastId() {
		return dao.lastId();
	}
	
	public Map<String, Object> querynick(@Param("id") String id){
		return dao.querynick(id);
		
	}

}
